package com.fushenlan.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 居委会成员实体类
 * @author Administrator
 * @date 2022/4/22 16:46
 */
@Data
@TableName(value = "neighborhood_member")
public class NeighborhoodMemberDO {

    /**
     * 居委会成员表主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 居委表主键id
     */
    @TableField(value = "neighborhoodId")
    private Long neighborhoodId;

    /**
     * 居委会人员姓名
     */
    @TableField(value = "memberName")
    private String memberName;

    /**
     * 登录账号
     */
    @TableField(value = "password")
    private String account;

    /**
     * 登录密码 MD5加密后的
     */
    @TableField(value = "password")
    private String password;

    /**
     * 居委会人员电话
     */
    @TableField(value = "memberPhone")
    private String memberPhone;

    /**
     * 岗位名称
     */
    @TableField(value = "jobName")
    private String jobName;

    /**
     * 居民表主键id
     */
    @TableField(value = "inhabitantId")
    private Long inhabitantId;

    /**
     * 创建时间
     */
    @TableField(value = "createDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createDate;

    /**
     * 更新时间
     */
    @TableField(value = "updateDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateDate;
}
